package com.detech.sbom.base.log.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义日志配置
 */
@Configuration
@ConfigurationProperties(prefix = "log.custom")
public class LogProperties {

    //操作日志、异常日志记录总开关，true将会记录信息到数据库
    private String p6spy_record_enable;

    //SQL语句性能监控（P6spy）记录开关，true将会记录信息到数据库
    private String log_record_enable;

    public String getP6spy_record_enable() {
        return p6spy_record_enable;
    }

    public void setP6spy_record_enable(String p6spy_record_enable) {
        this.p6spy_record_enable = p6spy_record_enable;
    }

    public String getLog_record_enable() {
        return log_record_enable;
    }

    public void setLog_record_enable(String log_record_enable) {
        this.log_record_enable = log_record_enable;
    }

}
